package com.djhu.freepartner.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zw
 * @since 2018-08-10
 */
@TableName("partner_message")
public class PartnerMessage extends Model<PartnerMessage> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    private String type;
    private String postid;
    @TableField("user_id")
    private String userId;
    @TableField("read_flag")
    private String readFlag;
    private String content;
    @TableField("create_user_id")
    private String createUserId;
    @TableField("create_date")
    private String createDate;
    @TableField("modify_date")
    private String modifyDate;
    private String status;
    @TableField("reply_flag")
    private String replyFlag;
    /**
     * 如果是回复的帖子 ,那么replyid 是 上一级的id
     */
    @TableField("reply_id")
    private String replyId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPostid() {
        return postid;
    }

    public void setPostid(String postid) {
        this.postid = postid;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(String readFlag) {
        this.readFlag = readFlag;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(String modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getReplyFlag() {
        return replyFlag;
    }

    public void setReplyFlag(String replyFlag) {
        this.replyFlag = replyFlag;
    }

    public String getReplyId() {
        return replyId;
    }

    public void setReplyId(String replyId) {
        this.replyId = replyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PartnerMessage{" +
        ", id=" + id +
        ", type=" + type +
        ", postid=" + postid +
        ", userId=" + userId +
        ", readFlag=" + readFlag +
        ", content=" + content +
        ", createUserId=" + createUserId +
        ", createDate=" + createDate +
        ", modifyDate=" + modifyDate +
        ", status=" + status +
        ", replyFlag=" + replyFlag +
        ", replyId=" + replyId +
        "}";
    }
}
